package com.guigu.controller;

import com.guigu.pojo.Evaluate;
import com.guigu.service.EvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class EvaluateController {
    @Autowired
    EvaluateService service;
    @GetMapping("/evalua")
    public Evaluate show(Integer memberid){
        return service.selectByPrimaryKey(memberid);
    }
}
